# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ct-exposer
pkgver=24.71252ac
pkgrel=7
pkgdesc='An OSINT tool that discovers sub-domains by searching Certificate Transparency logs.'
arch=('any')
groups=('blackarch' 'blackarch-scanner' 'blackarch-recon')
url='https://github.com/chris408/ct-exposer'
license=('GPL3')
depends=('python' 'python-gevent' 'python-greenlet' 'python-requests'
         'python-urllib3')
makedepends=('git')
source=("git+https://github.com/chris408/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

